﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeArt.SharePoint.Configuration
{
    using System.Configuration;
    using System.Collections.Specialized;
    using System.Collections;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Utilities;

    /// <summary>
    /// CodeArtConfigSection 
    /// </summary>
    public class SharePointSection : ConfigurationSection
    {

        /// <summary>
        /// 
        /// </summary>
        public const string SHAREPOINT_SECTION = "codeArtGroup/codeArtSharePoint";

        public SharePointSection()
        {
            //
        }


        [ConfigurationProperty("pickerControls")]
        public PickerControlCollection PickerControls
        {
            get
            {
                return (PickerControlCollection)base["pickerControls"];
            }
        }

        public static SharePointSection GetSection()
        {
            SharePointSettings gspSettings = new SharePointSettings();
            return (SharePointSection)gspSettings.GetSection(SHAREPOINT_SECTION);
        }


    }

}
